package vlms.cronjob;


import java.util.Calendar;
import java.util.Date;
import java.util.Timer;




public class Scheduler {

	private Timer timer;
	
	Calendar startCalendar,stopCalendar;
	
	
	
	
	public Scheduler(Date startTime,int periodInHours, Fine oFine,Subscription oSubscription) {
				
		
		timer = new Timer();
		timer.scheduleAtFixedRate(oFine, startTime, (periodInHours * 60 * 60 * 1000));
		timer.scheduleAtFixedRate(oSubscription, startTime, (periodInHours * 60 * 60 * 1000));	
	}
		
}
